<js href="__PLUGIN__/jquery.popWin.min.js"/>

<style>
#ad{
	width:240px;
	height:auto;
	border:1px #e0e0e0 solid;
	position:fixed;
	right:2px; 
	bottom:2px;
	background-color:white;
}

#ad #title{
	height:25px;
	line-height:25px;
	background-color:#f8f8f8;
	font-size:14px;
	padding:2px 10px;
	cursor:pointer;
	border-bottom:1px #e0e0e0 solid;
}

#ad #title strong{
	font-weight:bold;
}

#ad #title #close{
	float:right;
	padding-right:4px;
	color:red;
	cursor:pointer;
}

#ad #title #close:hover{
	color:purple;
}

#ad #add_content{
	font-size:12px;
	line-height:19px;
	padding:5px;
	min-height:100px;
}

#ad #add_content p{
	text-indent:2em;
}
</style>

<script type="text/javascript">
$(function(){
	$.fn.popWin({
	     PopSelector:"#ad",
	     CloseSelector:"#ad #close",
	     lideTime:600
	})
})
</script>

<div id="ad" style="display:none">
	<if condition="L('AD_OPEN') eq 1">
	<div id="title"><span id="close" title="{$Think.lang.CLOSE}">&times;</span><strong>{$Think.Lang.AD_TITLE}</strong></div>
    <div id="add_content">
    	<p><a href="{$Think.Lang.AD_LINK}">{$Think.Lang.AD_CONTENT}</a></p>
    </div>
    </if>
</div>